package com.example.analysis.mapper;

import com.example.analysis.entity.Course;
import com.example.analysis.entity.ElectionList;
import com.example.analysis.entity.Teacher;
import com.example.analysis.entity.TeacherCourseClass;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ElectionListMapper {
    void insert(List<ElectionList> list);

    List<ElectionList> select(@Param("courseId") String courseId, @Param("classId") String classId, @Param("teacherId") String teacherId);

    List<TeacherCourseClass> selectClassCount(@Param("courseId") String courseId, @Param("classId") String classId, @Param("teacherId") String teacherId);
    List<Course> selectCourses();
    List<Teacher> selectTeacher(String courseId);
}
